Using Arrays

Arrays can be passed to any User-Defined Function as a parameter of the function. This means that when you design your function in Delphi, the function can accept an array of values of any of the supported data types. However, the function cannot return an array to the Crystal Reports Formula Editor. The following Delphi function is an acceptable User-Defined Function for Crystal Reports:

Function GetNthItem (A: MyArray, n: Integer): Integer;
begin
    GetNthItem := A[n];
End;


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com